import type { RouteRecordRaw } from "vue-router";
import { REDIRECT_ROUTE_NAME } from "@/router/constants";

export const DEFAULT_LAYOUT = () => import("@/layout/default-layout.vue");
// export const DEFAULT_PAGE_LAYOUT = () => import("@/layout/page-layout.vue");

export const REDIRECT_MAIN: RouteRecordRaw = {
	path: "/redirect",
	name: "redirectWrapper",
	component: DEFAULT_LAYOUT,
	meta: {
		requiresAuth: true,
		hideInMenu: true,
	},
	children: [
		{
			path: "/redirect/:path",
			name: REDIRECT_ROUTE_NAME,
			component: () => import("@/views/common/redirect.vue"),
			meta: {
				requiresAuth: true,
				hideInMenu: true,
			},
		},
	],
};

export const NOT_FOUND_ROUTE: RouteRecordRaw = {
	path: "/:pathMatch(.*)*",
	name: "notFound",
	component: () => import("@/views/common/404.vue"),
};
